package com.chao.juc.asyn.noreturn;

import com.chao.juc.asyn.common.TaskCallable;
import com.chao.juc.asyn.common.TaskHandler;
import com.chao.juc.asyn.common.TaskResult;

/**
 * @author : Rookie
 * @description :
 * @date : 2023/2/3
 */
public class TaskCallableTest {

    public static void main(String[] args) {
        TaskCallable<TaskResult> taskHandler = new TaskHandler();
        TaskExecutor taskExecutor = new TaskExecutor(taskHandler, "测试回调！");
        new Thread(taskExecutor).start();
    }
}
